#include<stdio.h>
int main()
{
	double a[10]={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65};
	double b[10];
	int i,n;
	double sum;
	n=10;
	sum=0;
	for(i=0;i<n;i++)
	{
		scanf("%lf",&b[i]);
	}
	for(i=0;i<n;i++)
	{
	   sum=sum+a[i]*b[i];
 	}
	printf("%0.1lf",sum);
}
